package com.maisonliberte.entity;

public class PriceInfo {

	private int orgPrice;
	private int orgCarraige;
	private int emsFee;
	private int forwardFee;
	private int commision;
	private float rate;
	private int weight;
	
	public int Price(){
		//int p = orgPrice + orgCarraige + forwardFee + emsFee;
		int p = orgPrice + orgCarraige + forwardFee + emsFee;
		float fPrice = Float.valueOf(p) * rate;
		return Math.round(fPrice) + commision;
	}
	
	public int ConPrice(){
		//int p = orgPrice + orgCarraige + forwardFee + emsFee;
		int p = orgPrice + orgCarraige + forwardFee + emsFee;
		float fPrice = Float.valueOf(p) * rate;
		return Math.round(fPrice) + commision;
	}
	
	public int getOrgPrice() {
		return orgPrice;
	}
	public void setOrgPrice(int orgPrice) {
		this.orgPrice = orgPrice;
	}
	public int getOrgCarraige() {
		return orgCarraige;
	}
	public void setOrgCarraige(int orgCarraige) {
		this.orgCarraige = orgCarraige;
	}
	
	public int getCommision() {
		return commision;
	}
	public void setCommision(int commision) {
		this.commision = commision;
	}
	public float getRate() {
		return rate;
	}
	public void setRate(float rate) {
		this.rate = rate;
	}
	public int getWeight() {
		return weight;
	}
	public void setWeight(int weight) {
		this.weight = weight;
	}
	public int getEmsFee() {
		return emsFee;
	}

	public void setEmsFee(int emsFee) {
		this.emsFee = emsFee;
	}

	public int getForwardFee() {
		return forwardFee;
	}

	public void setForwardFee(int forwardFee) {
		this.forwardFee = forwardFee;
	}
	
}
